# -*- coding: UTF-8 -*-
# author:zhou date:2019/5/16
import pdb
from utils.api import API
from django.conf.urls import url
from branch.forms import *
from branch.views import *
from user.forms import *
from user.views import *

baseUrl = "/api/branch/"

testAPI = API(TestForm, method='GET', moduleUrl='test/', urlPrefix=baseUrl)
newDailyAPI = API(NewDailyForm, method='POST', moduleUrl='newDaily/', urlPrefix=baseUrl)
getDailyListAPI = API(GetDailyListForm, method='POST', moduleUrl='getDailyList/', urlPrefix=baseUrl)
deleteDailyAPI = API(DeleteDailyForm, method='POST', moduleUrl='deleteDaily/', urlPrefix=baseUrl)
getContectAPI = API(GetContectForm, method='POST', moduleUrl='getContect/', urlPrefix=baseUrl)
saveArticleAPI = API(SaveArticleForm, method='POST', moduleUrl='saveArticle/', urlPrefix=baseUrl)
getArticleAPI = API(GetArticleForm, method='POST', moduleUrl='getArticle/', urlPrefix=baseUrl)
submitThinkAPI = API(SubmitThinkForm, method='POST', moduleUrl='submitThink/', urlPrefix=baseUrl)
getSingleThinkAPI = API(GetSingleThinkForm, method='POST', moduleUrl='getSingleThink/', urlPrefix=baseUrl)
checkNotSubmitAPI = API(CheckNotSubmitForm, method='POST', moduleUrl='checkNotSubmit/', urlPrefix=baseUrl)
getThinksAPI = API(GetThinksForm, method='POST', moduleUrl='getThinks/', urlPrefix=baseUrl)
saveTestAPI = API(SaveTestForm, method='POST', moduleUrl='saveTest/', urlPrefix=baseUrl)
getTestAPI = API(GetTestForm, method='POST', moduleUrl='getTest/', urlPrefix=baseUrl)




urlpatterns = [
    url(testAPI.moduleUrl, test),
    url(newDailyAPI.moduleUrl, newDaily),
    url(getDailyListAPI.moduleUrl, getDailyList),
    url(deleteDailyAPI.moduleUrl, deleteDaily),
    url(getContectAPI.moduleUrl, getContect),
    url(saveArticleAPI.moduleUrl, saveArticle),
    url(getArticleAPI.moduleUrl, getArticle),
    url(submitThinkAPI.moduleUrl, submitThink),
    url(getSingleThinkAPI.moduleUrl, getSingleThink),
    url(checkNotSubmitAPI.moduleUrl, checkNotSubmit),
    url(getThinksAPI.moduleUrl, getThinks),
    url(saveTestAPI.moduleUrl, saveTest),
    url(getTestAPI.moduleUrl, getTest),
]